package com.nuaa.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nuaa.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DictService extends IService<Dict> {
    //根据数据id查询子数据列表
    List<Dict> findChildData(Long id);

    //导出mysql数据库数据 以excel形式导出
    void exportData(HttpServletResponse response);

    void improtData(MultipartFile file);

    String getNameByDictCodeAndValue(String dictCode, String value);

    List<Dict> findByDictCode(String dictCode);
}
